package com.jf.springmvc.interceptor;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-11-04
 * Time:20:31
 */
@Controller
@RequestMapping("/interceptor")
public class InterceptorController {
    @GetMapping("/hi")
    public String hi() {
        System.out.println("hi");
        return "success";
    }
    @GetMapping("/hello")
    public String hello() {
        System.out.println("hello");
        return "success";
    }
}
